#ifndef TESTWIDGET_H
#define TESTWIDGET_H

#include <QWidget>
#include <QFrame>
#include <QSettings>
#include "video/videoplayer.h"

struct VideoControl{
    VideoPlayer* player;
    QFrame* frame;
};

namespace Ui {
class TestWidget;
}

class TestWidget : public QWidget
{
    Q_OBJECT

public:
    explicit TestWidget(QWidget *parent = 0);
    ~TestWidget();

private slots:
    void on_pushButton_file_clicked();
    void on_pushButton_start_clicked();
    void on_pushButton_pause_clicked();
    void on_pushButton_resume_clicked();
    void on_pushButton_stop_clicked();
    void on_pushButton_seek_clicked();

private:
    Ui::TestWidget *ui;
    QVector<VideoControl*> m_videoCtls;
    QSettings m_setting;
};

#endif // TESTWIDGET_H
